import type { App } from 'vue'
import { createPinia } from 'pinia'
import piniaPluginPersist from 'pinia-plugin-persist'
const pinia = createPinia()// 全局注册 store
pinia.use(piniaPluginPersist)
export function setupPinia (app: App<Element>) {
  app.use(pinia)
}
export { pinia }
